#include "entity.h"

Entity::Entity(QString entityType,int state, QString locktype,QString argName)
{
    m_sEntityType = entityType;
    m_nState = state;
    m_sLocktype = locktype;
    m_sArgName = argName;
    m_dResult = 1;
}

EntityResult Entity::CheckState(QString attachName)
{
    EntityResult result;
    result.entityType = m_sEntityType;
    result.locktype = m_sLocktype;
    result.curState = m_nState;
    result.result = m_dResult;
    return result;
}
